
from .views import *
from django.urls import path

urlpatterns = [
    # 上传图片 http://127.0.0.1:8000/goods/brands/logo
    path("brands/logo/",UploadLogoAPIView.as_view()),
    # 加载所有的频道组数据
    path("channels/",ListChannelsAPIView.as_view()),
    # 加载所有的类别
    path("categories/", ListCateAPIView.as_view()),
    # 加载一个频道组数据   加载一个、更新一个、删除一个
    path("channels/<int:pk>/",ChannelAPIView.as_view()),

    # 加载一级类别
    path("channels/firstCate/",FirstCateAPIView.as_view()),

    # 增加一个频道组数据
    path("channelsAdd/", AddChannelView.as_view()),

    # 上传商品图片的地址
    path("sku_image/", UploadSKUImageAPIView.as_view()),

    # 生成七牛的token
    # path("get_token/",QiNiuAPIView.as_view()),
]
